package com.longcai.piaojia.util;

import android.graphics.Bitmap;
import android.widget.ImageView;

/**
 * Created by Administrator on 2016/8/18.
 */
public class VirtualBackground {

    public static Bitmap createScaledBitmap(Bitmap src, int dstWidth, int dstHeight, boolean filter) {
        int scaleRatio = 2;
        int blurRadius = 5;

//        Bitmap scaledBitmap = Bitmap.createScaledBitmap(src,
//                src.getWidth() / scaleRatio,
//                src.getHeight() / scaleRatio,
//                true);
        Bitmap blurBitmap = FastBlurUtil.doBlur(src, blurRadius, false);

        return blurBitmap;
    }

}
